define(['view/mainView'],
        function (MainView) {
    var AppView = function(){

    }
    AppView.prototype.render = function () {
        /*var viewContainer = $('#view-container');
        viewContainer.html('');
        var bannerView = new BannerView({
            renderafterCallback: function () {
                var mySwiper = new Swiper ('#face-banner .swiper-container', {
                    autoplay: 4000,
                    direction: 'horizontal',
                    loop: true,
                    // 如果需要分页器
                    pagination: '.swiper-pagination'
                });
                viewContainer.append(bannerView.$el.html(bannerView.template));
            }
        });

        var mySwiper;
        new NewsView({
            renderafterCallback: function () {
                mySwiper = new Swiper ('#news-box .swiper-container', {
                    direction: 'horizontal',
                    loop: true,
                    onSlideChangeEnd: function (swiper) {
                        var oNavs = $('#news-box .navs .nav');
                        var index = swiper.activeIndex;
                        oNavs.removeClass('active');
                        oNavs.eq(index - 1).addClass('active');
                    }
                });
            }
        });*/

        var mainView = new MainView();

        mainView.render();

        mainView.on('switcharea', function (e) {

        });
    }
    return AppView;
});
